package com.owen.springboot.smartparkingms.module.app.controller;


import com.owen.springboot.smartparkingms.common.model.Result;
import com.owen.springboot.smartparkingms.module.app.entity.CarParkRecord;
import com.owen.springboot.smartparkingms.module.app.entity.Park;
import com.owen.springboot.smartparkingms.module.app.service.ICarParkRecordService;
import com.owen.springboot.smartparkingms.module.app.service.IParkService;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Owen
 * @since 2022-02-25
 */
@RestController
@RequestMapping("/app/carParkRecord")
public class CarParkRecordController {

    @Resource
    ICarParkRecordService carParkRecordService;

    @PostMapping("list")
    public Result list(CarParkRecord carParkRecord){
        return carParkRecordService.listPage(carParkRecord);
    }
}
